import { addColumnEllipsis, dateRender } from "utils/common";
const columnWidth = 80;

let columns = [
  {
    dataIndex: "id",
    title: "ID",
    align: 'center',
    width: 50
  },  
  {
    dataIndex: "orderNo",
    title: "订单编号",
    width: 100
  },
  {
    dataIndex: "goodsName",
    title: "就诊服务",
    width: 60
  },
   {
    dataIndex: "contactsName",
    title: "联系人",
     align: 'center',
     width: 80
  },
  {
   dataIndex: "phone",
   title: "电话",
    align: 'center',
    width: 80
  },
  {
   dataIndex: "hospitalName",
   title: "医院",
    align: 'center',
    width: 100
  },
  {
   dataIndex: "visitTime",
   title: "就诊时间",
    align: 'center',
    width: 140
  },
  {
   dataIndex: "visitRemark",
   title: "就诊备注",
    align: 'center',
    width: 100
  },
  {
    dataIndex: "orderPrice",
    title: "订单单价",
    align: 'center',
    width: 100
  },
  {
    dataIndex: "orderCount",
    title: "数量",
    align: 'center',
    width: 100
  },
  {
    dataIndex: "orderTotcalPrice",
    title: "总价",
    align: 'center',
    width: 100
  },
  {
    dataIndex: "orderActualPayment",
    title: "实付金额(元)",
    align: 'center',
    width: 100
  },
  {
    dataIndex: "orderActualPaymentScore",
    title: "实付积分",
    align: 'center',
    width: 100
  },
  {
    dataIndex: "payType",
    title: "支付方式",
    scopedSlots: { customRender: "payType" },
    align: 'center',
    width: 100
  },
  {
    dataIndex: "orderReceiveUserName",
    title: "接单人",
    align: 'center',
    width: 100
  },
  {
    dataIndex: "orderReceiveTime",
    title: "接单时间",
    align: 'center',
    width: 100
  }, 
  {
    dataIndex: "orderStatus",
    title: "订单状态",
    scopedSlots: { customRender: "orderStatus" },
    align: 'center',
    width: 100
  },
  {
    dataIndex: "score",
    title: "获取积分",
    align: 'center',
    width: 100
  },
  {
    dataIndex: "createTime",
    title: "创建时间",
    align: 'center',
    width: 140
  },
  {
    dataIndex: "operation",
    title: "操作",
    scopedSlots: { customRender: "operation" },
    align: "center",
    width: 120,
    fixed: 'right'
  }
];

columns = addColumnEllipsis(columns);
export default columns;
